const AticleHttp = require("../../utils/articleHttp")
const MusicHttp = require("../../utils/MusicHttp")
Page({
  data: {
    detail:[]
  },
  onLoad: function (options) {
    var { id } = options
    var url = `http://47.108.197.28:4000/api/articleDetail?id=${id}`
    wx.request({
      url,
      header: {'content-type':'application/json'},
      method: 'GET',
      dataType: 'json',
      responseType: 'text',
      success: (res)=>{
        var detail = res.data.res
        console.log(detail)
        this.setData({
          detail
        })
      },
    });
  }
})